import http from '@/http'
import type { Tag } from '@/entity/types'

export const tagService = {
  getTags: () => http.get<Tag[]>('/tags'),
  createTag: (name: string) => http.post('/tags', { name }),
  deleteTag: (id: number) => http.delete(`/tags/${id}`),
}
